package com.itheima.service;

import com.itheima.constant.QuoteException;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.CheckItem;

import java.util.List;

public interface CheckGroupService {
    public PageResult findPage(QueryPageBean queryPageBean);
    //查询单个检查组和检查项
    Result findCheckItemIdsByCheckGroupId(Integer id);
    //添加检查组
    Result add(CheckGroup checkGroup,Integer[] checkitemIds) throws  QuoteException;
        //删除检查组
   Result deleteById(Integer id)throws QuoteException;
    //根据id查询该检查组的具体数据
    Result findById(Integer id);
    //编辑修改检查组数据
    Result edit(CheckGroup checkGroup, Integer[] checkitemIds);

    Result findAll();
}
